package com.wuwei.service;

import com.wuwei.service.impl.PaymentHystrixFallBackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description: PaymentHystrixService <br>
 * @date: 2021/2/9 15:39 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@FeignClient(value = "PROVIDER-HYSTRIX-8006",fallback = PaymentHystrixFallBackServiceImpl.class)
@Component
public interface PaymentHystrixService {

    @GetMapping("/payment/ok/{id}")
    public String payment_ok(@PathVariable("id") Integer id);

    @GetMapping("/payment/timeout/{id}")
    public String payment_timeout(@PathVariable("id") Integer id);
}
